﻿namespace StringsAndTextProcessing
{
    using System;

    class ReversingString
    {
        // 1.2.13.02. Write a program that reads a string, reverses it and prints the result at the console.
        // Example: "sample"  "elpmas".

        static void Main()
        {
            var input = Console.ReadLine();
            var inputToArr = input.ToCharArray();
            Array.Reverse(inputToArr);
            var result = new string(inputToArr);
            Console.WriteLine(result);
        }
    }
}